import React from 'react';
import { renderRoutes, RouteConfig, RouteConfigComponentProps } from 'react-router-config';
interface IProps extends RouteConfigComponentProps {
  route: {
    routes?: RouteConfig[];
  };
}
const Root: React.FC<IProps> = (props: IProps) => {
  const { route } = props;
  return (
    <div>
      Root
      {renderRoutes(route.routes)}
    </div>
  );
};

export default Root;
